// 模拟数据
// const mockData = {
//     users: [
//         { id: 1, name: 'Alice' },
//         { id: 2, name: 'Bob' }
//     ],
//     getUser: function(id) {
//         return this.users.find(user => user.id === id);
//     }
// };
// 获取模拟数据
// const user = mockData.getUser(1);
// console.log(user); // 输出：{ id: 1, name: 'Alice' }
export const getMenus = () => {
    return [
        {
          title: '配置组件',
          path: '/index'
        },
        {
          title: '功能测试',
          name: '功能测试',
          permission: [{
            name: '功能测试',
            code: 'GNCS0001'
          }, {
            name: '指令测试',
            code: 'ZLCS0001'
          }, {
            name: 'Pinia使用测试',
            code: 'PINIA0001'
          }],
          child: [
            {
              title: '指令测试',
              name: '指令测试',
              path: '/product'
            },
            {
              title: '权限判断',
              name: '权限判断',
              path: '/permission',
              permission: [{
                name: '管理员权限',
                code: 'GLY0001'
              }]
            },
            {
              title: 'Pinia使用测试',
              name: 'Pinia使用测试',
              path: '/census'
            },
            {
              title: 'dayjs',
              name: 'dayjs',
              path: '/dayjs'
            },
            {
              title: 'lodash',
              name: 'lodash',
              path: '/lodash'
            }
          ]
        },
        {
          title: '基础组件',
          name: '基础组件',
          permission: [{
            name: '基础组件',
            code: 'JCZJ0001'
          }, {
            name: '按钮',
            code: 'AN0001'
          }, {
            name: 'Layout布局',
            code: 'LAYOUT0001'
          }],
          child: [
            {
              title: '按钮',
              name: '按钮',
              path: '/button',
              permission: [{
                name: '删除',
                code: 'ANSC0001'
              }]
            },
            {
              title: 'Layout布局',
              name: 'Layout布局',
              path: '/layout'
            }
          ]
        },
        {
          title: '图表展示',
          name: '图表展示',
          child: [
            {
              title: 'echarts',
              name: 'echarts',
              path: '/echarts'
            },
            {
              title: '饼状图',
              name: '饼状图',
              path: '/pie'
            }
          ]
        }
    ]
}